<template>
  <div class="center-detail">
    <div class="btn-wrap">
      <el-button type="primary" size="small">编辑</el-button>
      <!-- :disabled="state.currentVisit.issuesStatus === ISSUES_STATUS_MAP.wancheng || state.currentVisit.issuesStatus === ISSUES_STATUS_MAP.zhengchang" -->
      <el-button type="primary" size="small" @click="addViewer">上传影像</el-button>
      <el-button v-if="detail.status <= 102204" type="primary" size="small" @click="check"
        >审查</el-button
      >
      <el-button type="primary" size="small" @click="refresh">刷新</el-button>
    </div>
    <detail :detail="detail" />
    <viewer :detail="detail" />
  </div>
</template>

<script lang="ts" setup>
import { defineProps } from 'vue'

import Detail from './detail.vue'
import Viewer from './viewer.vue'

defineProps({
  detail: {
    type: Object,
    default: () => {},
  },
})
const addViewer = () => {}
const check = () => {}
const refresh = () => {}
</script>
